<?php

namespace Wilead\UserManagerBundle\Menu;

use Knp\Menu\FactoryInterface;
use Symfony\Component\DependencyInjection\ContainerAware;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Builder
 *
 * @author jack
 */
class Builder extends ContainerAware {

    public function mainMenu(FactoryInterface $factory, array $options) {
        $menu = $factory->createItem('root');

        $menu->addChild('用户', array('route' => 'manager_user'));
        $menu->addChild('图片', array('route' => 'manager_albums'));
        $menu->addChild('视频', array('route' => 'manager_video'));
        $menu->addChild('修改密码', array('route' => 'fos_user_change_password'));
        $menu->addChild('退出', array('route' => 'fos_user_security_logout'));

        return $menu;
    }

}

?>
